﻿using System;
namespace Maticsoft.Model
{
	/// <summary>
	/// T_Monitor:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class T_Monitor
	{
		public T_Monitor()
		{}
		#region Model
        private string _id = System.Guid.NewGuid().ToString();
		private string _equipment;
		private string _heart;
		private string _temp;
		private string _blood;
		private DateTime _datatime= DateTime.Now;
        private string _nowtime="";
        private string time_str;
        public string Time_Str
        {
            set
            {
                time_str = value;
                _datatime = DateTime.ParseExact(time_str,"yyyy/MM/dd HH:mm:ss",null);
            }
            get
            {
                time_str = _datatime.ToString("yyyy/MM/dd HH:mm:ss");
                return time_str;
            }
        }

        public string NowTime
        {
            set {
                _nowtime = value;
            }
            get {
                return _nowtime;
            }
        }

		/// <summary>
		/// 
		/// </summary>
		public string Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Equipment
		{
			set{ _equipment=value;}
			get{return _equipment;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Heart
		{
			set{ _heart=value;}
			get{return _heart;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Temp
		{
			set{ _temp=value;}
			get{return _temp;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Blood
		{
			set{ _blood=value;}
			get{return _blood;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime Datatime
		{
			set{ _datatime=value;}
			get{return _datatime;}
		}
		#endregion Model

	}
}

